 <#import "../../macro/macro.ftl" as m>
  <#import "../../macro/dict.ftl" as d>
 <@m.script type="css" href="css/addWindow.css" version="1.5"/>
<div class="table-add-div">
	        <form id="resourceEditForm" method="post" target="${res_path}/addOrUpdate">
	        	<@m.hiddenInput name="id"  value="${(res.id)!''}"/>
	        	<@m.hiddenInput name="parentId"  value="${(parentId)!''}"/>
	        	<table class="window-add-table">
	        		<tr>
	        			<td colspan="2">
	        				<@m.labInput name="parentName" lable="父级资源"  disable="disable" value="${(parentname)!''}"/>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>
	        				<@m.labInput name="text" lable="资源名称" prompt="" tag="*" value="${(res.text)!''}"/>
	        			</td>
	        			<td>
	        				<@m.labInput name="code" lable="资源编码" prompt="英文字母或数字组合" tag="*" value="${(res.code)!''}"/>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td>
	        				<@d.dictSelect lable="所属应用" name="apply" dtype="APP_ENUM" tag="*"  value="${(res.apply)!''}"/>
	        			</td>
	        			<td>
	        				<@d.dictSelect lable="元素类型" name="type"  dtype="RES_TYPE_ENUM"  tag="*"  value="${(res.type)!''}"/>
	        			</td>
	        		</tr>
	        		<tr>
	        			<td colspan="2">
	        				<@m.labInput name="url" lable="链接地址" prompt="" tag="" comstyle="width:565px;height:31px;" value="${(res.url)!''}"/>
	        			</td>
	        		</tr>
	        		
	        		<tr>
	        			<td>
	        				<@m.selectIcons name="iconCls" lable="选择图标" value="${(res.iconCls)!''}"/>
	        			</td>
	        			<td>
	        				<@m.labInput name="sort" lable="排序" comstyle="width:265px;height:31px;" value="${(res.sort)!0}"/>
	        			</td>
	        		</tr>
	        	</table>
	        </form>
        </div>
